package 尚硅谷juc大厂.test22;

import org.openjdk.jol.info.ClassLayout;

import java.util.concurrent.TimeUnit;

public class Test22 {

    public static void main(String[] args) {
        Object o=new Object();
        new Thread(()->{
            synchronized (o){
                System.out.println(ClassLayout.parseInstance(o).toPrintable());
            }
        }).start();
    }
}
